using UnityEngine;

namespace NodeCanvas.Variables
{
	[AddComponentMenu("")]
	public class Vector3Data : VariableData
	{
		public Vector3 value;

		public override object objectValue
		{
			get
			{
				return value;
			}
			set
			{
				this.value = (Vector3)value;
			}
		}

		public override object GetSerialized()
		{
			return new float[3] { value.x, value.y, value.z };
		}

		public override void SetSerialized(object obj)
		{
			float[] array = obj as float[];
			value = new Vector3(array[0], array[1], array[2]);
		}
	}
}
